package com.wmjsoft.view.token

import net.cloudopt.next.web.Resource
import net.cloudopt.next.web.route.API
import net.cloudopt.next.web.route.POST
import net.cloudopt.next.web.route.RequestBody

@API("/token")
class Controller: Resource() {

    @POST("/test",valid = [TestValidator::class] )
    fun token(@RequestBody testValidator: TestValidator) {
        renderJson(
            template {
                parameters["result"] = testValidator
            }
        )
    }

}




data class LoginVto(var username:String, var password:String)

